﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace ly.Web.QianTai
{
    public partial class AllActivity : System.Web.UI.Page
    {
        ly.BLL.Activity actBLL = new BLL.Activity();
        ly.Model.Activity actModel = new Model.Activity();
        protected void Page_Load(object sender, EventArgs e)
        {
            BindData();
        }


        private void BindData()
        {
            string strwhere = "";
            DataTable dt = actBLL.GetList(strwhere).Tables[0];
            PagedDataSource ps = new PagedDataSource();
            ps.DataSource = dt.DefaultView;
            ps.AllowPaging = true;
            //最新huodong
            DataListAct.DataSource = ps;
            DataListAct.DataBind();

        }
    }
}